<?php
class Request 
{
	public function __construct()
	{
		
	}
	
	public function get($key, $def = '')
	{
		$value = isset($_GET[$key]) ? trim(Unit::safe($_GET[$key])) : $def;
		return $value;
	}
	
	public function post($key, $def = '')
	{
		$value = isset($_POST[$key]) ? trim(Unit::safe($_POST[$key])) : $def;
		return $value;
	}
	
	public static function getParam($key, $def = '')
	{
		$obt = new self();
		return $obt->get($key, $def);
	}
	
	public static function postParam($key, $def = '')
	{
		$obt = new self();
		return $obt->post($key, $def);
	}
}